import request from "../utils/axios"
export const getPaymentAddress=()=>{
   return request.get('/v1/index/payment-addresses?page=1')
}
export const getRechargeOrder=(id)=>{
   return request.get(`/v1/index/recharge-orders/${id}`)
}
export const putRechargeOrder = (id,data)=>{
   return request.put(`/v1/index/recharge-orders/${id}`,data)
}
export const editRechargeOrder = (data)=>{
  return request.post(`/v1/index/recharge-orders`,data)
}
export const getRechargeOrderList = ()=>{
  return request.post(`/v1/index/recharge-orders`,data)
}
export const getExchangeRate=(page)=>{
  return request.get(`/v1/index/recharge-orders?page=${page}`)
}
export const getWithdrawalOrder=(page)=>{
  return request.get(`/v1/index/withdrawal-orders?page=${page}`)
}
export const editWithdrawalOrder=(data)=>{
  return request.post(`/v1/index/withdrawal-orders`,data)
}
export const exchangeRate = (type)=>{
  return request.get(`/v1/index/get-exchange-rate?symbol=${type}`)
}
export const getStock1 = (type)=>{
  return request.get(`/v1/index/configs/${type}`)
}